﻿using KouDai.Core;
using KouDai.Core.Engine;
using KouDai.Core.ViewModel;
using KouDai.Metro.Service;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using Windows.UI.Xaml;

namespace KouDai.Metro.Helper
{
    public class MetroInitializer : AbsInitializer
    {
        protected override void InitFileEngine()
        {
            LocalFileAdapter.Current = new MetroFileEngine();
        }

        protected override async Task InitFolder()
        {
            await LocalFileAdapter.Current.CreateFolder(Constants.ImageFolderName);
        }

        protected override void InitNavService()
        {
            ViewModelLocator locator = App.Current.Resources["Locator"] as ViewModelLocator;
            locator.NavigateService = new MetroNavigateService();
        }
    }
}
